package com.ohos.connect.devicecloud.iot.modular.device.model.dto;

import cn.hutool.json.JSONObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 设备控制
 *
 * @author Dongtao
 * @date  2025/1/5 10:43
 **/
@Getter
@Setter
public class DeviceControlDTO {

    @ApiModelProperty(value = "ProjectID", position = 1)
    @NotBlank(message = "cmdType不能为空")
    private String cmdType;

    @ApiModelProperty(value = "注册类型", position = 1)
    private String mode;

    @ApiModelProperty(value = "requestId", position = 1)
    @NotBlank(message = "requestId不能为空")
    private String requestId;

    @ApiModelProperty(value = "UTC时间", position = 1)
    @NotBlank(message = "timestamp不能为空")
    private String timestamp;

    @ApiModelProperty(value = "设备id", position = 1)
    @NotBlank(message = "设备id不能为空")
    private String devId;

    @ApiModelProperty(value = "产品id", position = 1)
    @NotBlank(message = "产品id不能为空")
    private String prodId;

    @ApiModelProperty(value = "operation", position = 1)
    @NotBlank(message = "operation不能为空")
    private String operation;

    @ApiModelProperty(value = "设备服务", position = 1)
    private Object services;

}
